package com.erp.entity.goods;

/**
 * 商品查询条件封装类
 */
public class GoodsQuery {
    /**
     * 分页显示的当前页
     */
    private Integer pageNum = 1;
    /**
     * 分页显示的页容量
     */
    private Integer pageSize = 10;
    /**
     * 是否显示零库存商品（1显示，0不显示）
     */
    private Integer isGetZero;
    /**
     * 公司ID（必填）
     */
    private Integer companyId;
    /**
     * 输入框搜索值——对名称编码等多个字段模糊查询（具体去筋斗云查看关于商品的搜索框提示）
     */
    private String searchValue;
    /**
     * 商品的状态（全部-"''",启用-"1",禁用-"0"）    类似购货销售需要设置为1，查询启用商品
     */
    private String searchStatus;
    /**
     * 类别ID，点击分类后它以及子孙级的ID列表
     */
    private Integer[] selectedCategoryIds;
    /**
     * 仓库ID
     */
    private Integer searchWarehouseId;


    public GoodsQuery() {
    }

    public GoodsQuery(Integer pageNum, Integer pageSize, Integer isGetZero, Integer companyId, String searchValue, String searchStatus, Integer[] selectedCategoryIds, Integer searchWarehouseId) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.isGetZero = isGetZero;
        this.companyId = companyId;
        this.searchValue = searchValue;
        this.searchStatus = searchStatus;
        this.selectedCategoryIds = selectedCategoryIds;
        this.searchWarehouseId = searchWarehouseId;
    }

    /**
     * 获取
     *
     * @return pageNum
     */
    public Integer getPageNum() {
        return pageNum;
    }

    /**
     * 设置
     *
     * @param pageNum
     */
    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    /**
     * 获取
     *
     * @return pageSize
     */
    public Integer getPageSize() {
        return pageSize;
    }

    /**
     * 设置
     *
     * @param pageSize
     */
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获取
     *
     * @return isGetZero
     */
    public Integer getIsGetZero() {
        return isGetZero;
    }

    /**
     * 设置
     *
     * @param isGetZero
     */
    public void setIsGetZero(Integer isGetZero) {
        this.isGetZero = isGetZero;
    }

    /**
     * 获取
     *
     * @return companyId
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 设置
     *
     * @param companyId
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 获取
     *
     * @return searchValue
     */
    public String getSearchValue() {
        return searchValue;
    }

    /**
     * 设置
     *
     * @param searchValue
     */
    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    /**
     * 获取
     *
     * @return searchStatus
     */
    public String getSearchStatus() {
        return searchStatus;
    }

    /**
     * 设置
     *
     * @param searchStatus
     */
    public void setSearchStatus(String searchStatus) {
        this.searchStatus = searchStatus;
    }

    /**
     * 获取
     *
     * @return selectedCategoryIds
     */
    public Integer[] getSelectedCategoryIds() {
        return selectedCategoryIds;
    }

    /**
     * 设置
     *
     * @param selectedCategoryIds
     */
    public void setSelectedCategoryIds(Integer[] selectedCategoryIds) {
        this.selectedCategoryIds = selectedCategoryIds;
    }

    /**
     * 获取
     *
     * @return searchWarehouseId
     */
    public Integer getSearchWarehouseId() {
        return searchWarehouseId;
    }

    /**
     * 设置
     *
     * @param searchWarehouseId
     */
    public void setSearchWarehouseId(Integer searchWarehouseId) {
        this.searchWarehouseId = searchWarehouseId;
    }

    public String toString() {
        return "GoodsQuery{pageNum = " + pageNum + ", pageSize = " + pageSize + ", isGetZero = " + isGetZero + ", companyId = " + companyId + ", searchValue = " + searchValue + ", searchStatus = " + searchStatus + ", selectedCategoryIds = " + selectedCategoryIds + ", searchWarehouseId = " + searchWarehouseId + "}";
    }
}
